package com.muspelheim.httpbucket.server;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class InfoServlet extends HttpServlet {
  private static final long serialVersionUID = -4289367687238694797L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		resp.getOutputStream().println("<h1>Welcome to http-bucket</h1>");
		resp.getOutputStream().println("<h2>Info:</h2>");
		resp.getOutputStream().println("Resource dir: " + System.getProperty("resource.dir"));
	}
}
